<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Tetris Game: /home/hokan/NetBeansProjects/TetrisGame/headers/CUserInputEventReceiver.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Tetris Game
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">Test game project created via Irrlicht and Qt</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('_c_user_input_event_receiver_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">/home/hokan/NetBeansProjects/TetrisGame/headers/CUserInputEventReceiver.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* </span>
<a name="l00002"></a>00002 <span class="comment"> * File:   CUserInputReceiver.h</span>
<a name="l00003"></a>00003 <span class="comment"> * Author: hokan</span>
<a name="l00004"></a>00004 <span class="comment"> *</span>
<a name="l00005"></a>00005 <span class="comment"> * Created on 2 Июль 2014 г., 16:37</span>
<a name="l00006"></a>00006 <span class="comment"> */</span>
<a name="l00007"></a>00007 
<a name="l00008"></a>00008 <span class="preprocessor">#ifndef CUSERINPUTRECEIVER_H</span>
<a name="l00009"></a>00009 <span class="preprocessor"></span><span class="preprocessor">#define CUSERINPUTRECEIVER_H</span>
<a name="l00010"></a>00010 <span class="preprocessor"></span>
<a name="l00011"></a>00011 <span class="preprocessor">#include &quot;CGameFieldManager.h&quot;</span>
<a name="l00012"></a>00012 <span class="preprocessor">#include &quot;CFigure.h&quot;</span>
<a name="l00013"></a>00013 
<a name="l00014"></a>00014 <span class="preprocessor">#pragma GCC diagnostic ignored &quot;-Wunused-parameter&quot;</span>
<a name="l00015"></a>00015 <span class="preprocessor"></span><span class="preprocessor">#pragma GCC diagnostic ignored &quot;-Wunused-variable&quot;</span>
<a name="l00016"></a>00016 <span class="preprocessor"></span><span class="preprocessor">#include &lt;IEventReceiver.h&gt;</span>
<a name="l00017"></a>00017 <span class="preprocessor">#pragma GCC diagnostic warning &quot;-Wunused-parameter&quot;</span>
<a name="l00018"></a>00018 <span class="preprocessor"></span><span class="preprocessor">#pragma GCC diagnostic warning &quot;-Wunused-variable&quot;</span>
<a name="l00019"></a>00019 <span class="preprocessor"></span>
<a name="l00020"></a><a class="code" href="class_c_user_input_event_receiver.html">00020</a> <span class="keyword">class </span><a class="code" href="class_c_user_input_event_receiver.html">CUserInputEventReceiver</a> : <span class="keyword">public</span> irr::IEventReceiver {
<a name="l00021"></a>00021 <span class="keyword">public</span>:
<a name="l00029"></a>00029     <a class="code" href="class_c_user_input_event_receiver.html#aa63b5dd3047e452043f8d63b38d25b19">CUserInputEventReceiver</a>(<a class="code" href="class_c_game_field_manager.html">CGameFieldManager</a>* gameFieldManager, <span class="keywordtype">bool</span> twoDimensionalMode = <span class="keyword">true</span>, <a class="code" href="class_c_figure.html">CFigure</a>* figure = NULL);  
<a name="l00030"></a>00030     
<a name="l00034"></a>00034     <span class="keyword">virtual</span> <a class="code" href="class_c_user_input_event_receiver.html#ab2666015c623bc7b7bf15139aa943f41">~CUserInputEventReceiver</a>();
<a name="l00035"></a>00035     
<a name="l00039"></a>00039     <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="class_c_user_input_event_receiver.html#a91fa11c3a04b59dacb8e3416108221d5">OnEvent</a>(<span class="keyword">const</span> irr::SEvent&amp; event);
<a name="l00040"></a>00040     
<a name="l00046"></a>00046     <a class="code" href="class_c_figure.html">CFigure</a>* <a class="code" href="class_c_user_input_event_receiver.html#a35bff656b35a7d16a2e055ad67d28761">getControllingFigure</a>() <span class="keyword">const</span>;
<a name="l00047"></a>00047 
<a name="l00053"></a>00053     <span class="keywordtype">void</span> <a class="code" href="class_c_user_input_event_receiver.html#aaffea15fe2857dc2fec11d44aa26c810">setControllingFigure</a>(<a class="code" href="class_c_figure.html">CFigure</a>* newFigure);
<a name="l00054"></a>00054 
<a name="l00060"></a>00060     <span class="keywordtype">bool</span> <a class="code" href="class_c_user_input_event_receiver.html#ae2a9eec1ea56775ef695aa15959c0d06">getTwoDimensionalMode</a>() <span class="keyword">const</span>;
<a name="l00061"></a>00061 
<a name="l00067"></a>00067     <span class="keywordtype">void</span> <a class="code" href="class_c_user_input_event_receiver.html#a742b00af796200bdc7e2a55aabb9ff83">setTwoDimensionalMode</a>(<span class="keywordtype">bool</span> newValue);
<a name="l00068"></a>00068     
<a name="l00074"></a>00074     <span class="keywordtype">bool</span> <a class="code" href="class_c_user_input_event_receiver.html#ab9a0296e645b68ce1601143f1e03e88c">isPause</a>() <span class="keyword">const</span>;
<a name="l00075"></a>00075     
<a name="l00081"></a>00081     <span class="keywordtype">void</span> <a class="code" href="class_c_user_input_event_receiver.html#a3b714104b2c235fa7a8117d6f40ef524">setPause</a>(<span class="keywordtype">bool</span> newPauseValue);
<a name="l00082"></a>00082 
<a name="l00083"></a>00083 <span class="keyword">private</span>:
<a name="l00090"></a>00090     <span class="keywordtype">bool</span> outOfBottomFieldBorders(irr::core::vector3di position);
<a name="l00091"></a>00091     
<a name="l00098"></a>00098     <span class="keywordtype">bool</span> outOfFieldBorders(irr::core::vector3di position);
<a name="l00099"></a>00099     
<a name="l00105"></a>00105     <span class="keywordtype">void</span> moveFigureInDirection(irr::core::vector3di directionStep);
<a name="l00106"></a>00106     
<a name="l00112"></a>00112     <span class="keywordtype">void</span> clipFigureRotation(irr::core::vector3df&amp; figureRotation);
<a name="l00113"></a>00113     
<a name="l00119"></a>00119     <span class="keywordtype">void</span> rotateFigureInDirection(irr::core::vector3df directionStep);
<a name="l00120"></a>00120 
<a name="l00121"></a>00121 <span class="keyword">private</span>:
<a name="l00125"></a>00125     <a class="code" href="class_c_game_field_manager.html">CGameFieldManager</a>* gameFieldManager;
<a name="l00126"></a>00126     
<a name="l00130"></a>00130     <span class="keywordtype">bool</span> twoDimensionalMode;
<a name="l00131"></a>00131     
<a name="l00135"></a>00135     <a class="code" href="class_c_figure.html">CFigure</a>* figure;
<a name="l00136"></a>00136     
<a name="l00140"></a>00140     <span class="keywordtype">bool</span> pause;
<a name="l00141"></a>00141 };
<a name="l00142"></a>00142 
<a name="l00143"></a>00143 <span class="preprocessor">#endif  </span><span class="comment">/* CUSERINPUTRECEIVER_H */</span>
<a name="l00144"></a>00144 
</pre></div></div><!-- contents -->
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><b>CUserInputEventReceiver.h</b>      </li>

    <li class="footer">Generated on Sun Jul 6 2014 19:35:11 for Tetris Game by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.6.1 </li>
   </ul>
 </div>


</body>
</html>
